/*
 *    Copyright (c) 2018-2025, boss All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the boss developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: boss
 */

package com.hopes.bizz.risk.card.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.hopes.bizz.risk.common.constant.enums.RiskModDictEnum;
import com.hopes.boss.admin.api.resolver.DictResolver;
import com.hopes.boss.common.entity.BaseLogicEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.io.Serializable;

/**
 * 有害因素应知卡
 *
 * @author cx
 * @date 2023-08-03 16:01:08
 */
@Data
@TableName("risk_card_notify")
@EqualsAndHashCode(callSuper = true)
@Schema(description = "有害因素应知卡")
public class RiskCardNotifyEntity extends BaseLogicEntity {

    private static final long serialVersionUID = 1L;


	/**
	* 标识
	*/
    @TableId(type = IdType.ASSIGN_ID)
    @Schema(description="标识")
    private Long id;

	/**
	* 编号
	*/
    @Schema(description="编号")
    private String cardNo;

	/**
	* 名称
	*/
    @Schema(description="名称")
    private String cardName;

	/**
	* 风险等级
	*/
    @Schema(description="风险等级")
    private Integer riskLevel;

	/**
	* 主要危险有害因素
	*/
    @Schema(description="主要危险有害因素")
    private String mainDesc;

	/**
	* 易导致的事故风险
	*/
    @Schema(description="易导致的事故风险")
    private String accidentDesc;

	/**
	* 风险管控措施
	*/
    @Schema(description="风险管控措施")
    private String controlDesc;

	/**
	* 应急处置对策
	*/
    @Schema(description="应急处置对策")
    private String handleDesc;

	/**
	* 安全操作规程
	*/
    @Schema(description="安全操作规程")
    private String safeOperationDesc;

	/**
	* 禁止
	*/
    @Schema(description="禁止")
    private String forbidSign;

	/**
	* 警告
	*/
    @Schema(description="警告")
    private String alarmSign;

	/**
	* 指令
	*/
    @Schema(description="指令")
    private String cmdSign;

	/**
	* 文件图片
	*/
    @Schema(description="文件图片")
    private String file;

	/**
	* 类型
	*/
    @Schema(description="类型")
    private Integer type;

	/**
	* 责任人
	*/
    @Schema(description="责任人")
    private String kahuna;

	/**
	* 责任人电话
	*/
    @Schema(description="责任人电话")
    private String kahunaPhone;

	/**
	* 应急值班室电话
	*/
    @Schema(description="应急值班室电话")
    private String emergencyTelephone;

	/**
	* 机构ID
	*/
    @Schema(description="机构ID")
    private Long orgId;

	public String getForbidSignStr() {
		return  DictResolver.getItemLabelByValue(RiskModDictEnum.risk_safety_warning_label, this.getForbidSign());
	}

	public String getAlarmSignStr() {
		return  DictResolver.getItemLabelByValue(RiskModDictEnum.risk_safety_warning_label, this.getAlarmSign());
	}

	public String getCmdSignStr() {
		return  DictResolver.getItemLabelByValue(RiskModDictEnum.risk_safety_warning_label, this.getCmdSign());
	}

}